package com.lm.survey.web;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.catalina.Session;

import com.lm.survey.logic.ActivityParticipantLogic;
import com.lm.survey.logic.ParticipantLogic;
import com.lm.survey.model.Participant;
import com.lm.survey.model.User;
import com.lm.survey.util.JsonHelper;
import com.lm.survey.util.RequestToPojo;

/**
 * Servlet implementation class ChangePwServlet
 */
public class ParticipantServlet extends BaseServlet {
	public void queryParticipant(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		String email = request.getParameter("email");
		ParticipantLogic pl = new ParticipantLogic();
		List list = pl.getAll(email);
		String json = JsonHelper.list2json(list);
		this.writeJson(json, response);

	}
}
